<?php

namespace app\common\business;
use \app\common\model\mysql\Category as categoryMd;
class Category
{
    public function __construct()
    {
        $this->model = new categoryMd();
    }

    public function getCategoryList()
    {
        $category = $this->model->getSelect()->toArray();
        $categoryTree = get_cate_list($category);
        return $categoryTree;
    }
}